package com.hbnu.ysc.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    // 用户名
    public String name;
    // 密码
    public String password;
    // 余额
    public double balance;

//    public ArrayList<Insurance> insuranceServer;

//    public User() {
//    }

//    public User(String name, String password, double balance) {
//        this.name = name;
//        this.password = password;
//        this.balance = balance;
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}
